package L2;

import java.util.Scanner;

public class Entry {
    public static void main(String[]args){
        final String sp = " ";
        Scanner sc = new Scanner(System.in);
        String str = sc.next();
        sc.close();
        char c = str.charAt(0);
        
        int times = c-'A';
        int offset = 0;
        while (times-offset >= 0) {
            String lineChar = String.format("%c", 'A'+offset);
            System.out.println(sp.repeat(times-offset) + lineChar.repeat((2*offset+1)));
            offset++;
        }
        offset-=2;
        while (offset >= 0) {
            String lineChar = String.format("%c", 'A'+offset);
            System.out.println(sp.repeat(times-offset) + lineChar.repeat((2*offset+1)));
            offset--;
        }

    }
}

